package com.qf.forumproject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (QfComment)实体类
 *
 * @author Manchi
 * @since 2022-07-26 22:42:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("评论实体")
public class QfComment implements Serializable {
    private static final long serialVersionUID = -24203479927046371L;
    /**
     * 自增id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 评论文章id
     */
    private Integer topicId;
    /**
     * 评论者id
     */
    private Integer uid;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreate;


}
